<template>
  <div class="container">
    <Header />
    <div class="content">
      <Sidebar />
      <div class="main-scroll">
        <RouterView />
      </div>
    </div>
  </div>
</template>

<script>
import Sidebar from "./sidebar.vue";
import Header from "./header.vue";

export default {
  components: {
    Sidebar,
    Header,
  },
};
</script>

<style scoped>
.container {
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
}

.content {
  display: flex;
  flex: 1;
  overflow: hidden;
}

.main-scroll {
  flex: 1;
  background-color: #F5F7F9;
  overflow-y: auto;
}
</style>
